home *** CD-ROM | disk | FTP | other *** search
- -- File Name: SetUpMenus
- --
- -- Written By: Peter B. Nagel
- -- Date Created: December 10, 1991 9:06:51 AM
- -- Description:
- --
- -- A MasterScript startup script that deletes MasterScript's
- -- built-in menus and recreates them in HyperTalk
- --
- -- Change History:
-
- -------------------------------------------------
-
- -- DELETE HYPERCARD'S FONT AND STYLE MENUS
-
- -- delete menu "Font"
- -- delete menu "Style"
-
-
- -- REMOVE MASTERSCRIPT╒S BUILT-IN MENUS
-
- send deletemenus to window "MasterScript Worksheet"
-
-
- -- RECREATE MASTERSCRIPT'S BUILT-IN MENUS IN HYPERTALK
-
- create menu MS1
-
- put "Go" into menu MS1
- set the menumsg of menuitem "Go" of menu MS1 to "MasterScript Go," & quote & "{msActive}" & quote
-
- put "Step" after menu MS1
- set the menumsg of menuitem "Step" of menu MS1 to "MasterScript Step," & quote & "{msActive}" & quote
-
- put "Trace" after menu MS1
- set the menumsg of menuitem "Trace" of menu MS1 to "MasterScript Trace," & quote & "{msActive}" & quote
-
- put "Step Through" after menu MS1
- set the menumsg of menuitem "Step Through" of menu MS1 to "MasterScript StepThrough," & quote & "{msFront}" & quote
-
- put "Execute Selection" after menu MS1
- set the menumsg of menuitem "Execute Selection" of menu MS1 to "MasterScript ExecSelect," & quote & "{msActive}" & quote
-
- put "Abort" after menu MS1
- set the menumsg of menuitem "Abort" of menu MS1 to "MasterScript Abort," & quote & "{msFront}" & quote
- set the cmdChar of menuitem "Abort" of menu MS1 to "."
-
- put "-" after menu MS1
-
- put "Find and Replace╔" after menu MS1
- set the menumsg of menuitem "Find and Replace╔" of menu MS1 to "MasterScript Find," & quote & "{msActive}" & quote
- set the cmdChar of menuitem "Find and Replace╔" of menu MS1 to "F"
-
- put "Text Formatting╔" after menu MS1
- set the menumsg of menuitem "Text Formatting╔" of menu MS1 to "MasterScript Format," & quote & "{msActive}" & quote
- set the cmdChar of menuitem "Text Formatting╔" of menu MS1 to "Y"
-
- put "-" after menu MS1
-
- put "Save" after menu MS1
- set the menumsg of menuitem "Save" of menu MS1 to "MasterScript Save," & quote & "{msActive}" & quote
- set the cmdChar of menuitem "Save" of menu MS1 to "S"
-
- put "Save As╔" after menu MS1
- set the menumsg of menuitem "Save As╔" of menu MS1 to "MasterScript SaveAs," & quote & "{msActive}" & quote
-
- put "Revert To Saved" after menu MS1
- set the menumsg of menuitem "Revert To Saved" of menu MS1 to "MasterScript RevertSave," & quote & "{msActive}" & quote
-
- put "Page Setup╔" after menu MS1
- set the menumsg of menuitem "Page Setup╔" of menu MS1 to "MasterScript PageSetup," & quote & "{msActive}" & quote
-
- put "Print╔" after menu MS1
- set the menumsg of menuitem "Print╔" of menu MS1 to "MasterScript Print," & quote & "{msActive}" & quote
- set the cmdChar of menuitem "Print╔" of menu MS1 to "P"
-
- put "-" after menu MS1
-
- put "Configure╔" after menu MS1
- set the menumsg of menuitem "Configure╔" of menu MS1 to "MasterScript Configure," & quote & "{msFront}" & quote
-
- put "Edit/Debug Prefs╔" after menu MS1
- set the menumsg of menuitem "Edit/Debug Prefs╔" of menu MS1 to "MasterScript EditPrefs," & quote & "{msFront}" & quote
-
- put "About MasterScript╔" after menu MS1
- set the menumsg of menuitem "About MasterScript╔" of menu MS1 to "MasterScript About," & quote & "{msFront}" & quote
-
- put "Exit MasterScript" after menu MS1
- set the menumsg of menuitem "Exit MasterScript" of menu MS1 to "MasterScript Exit," & quote & "{msFront}" & quote
- set the cmdChar of menuitem "Exit MasterScript" of menu MS1 to "E"
-
-
- create menu Wind
-
- put "Tile Windows" into menu Wind
- set the menumsg of menuitem "Tile Windows" of menu Wind to "MasterScript Tile," & quote & "{msFront}" & quote
-
- put "Stack Windows" after menu Wind
- set the menumsg of menuitem "Stack Windows" of menu Wind to "MasterScript Stack," & quote & "{msFront}" & quote
-
- put "Show/Hide Windows" after menu Wind
- set the menumsg of menuitem "Show/Hide Windows" of menu Wind to "MasterScript ShowHide," & quote & "{msFront}" & quote
- set the cmdChar of menuitem "Show/Hide Windows" of menu Wind to "W"
-
- put "-" after menu Wind
-
- put "New Window" after menu Wind
- set the menumsg of menuitem "New Window" of menu Wind to "MasterScript NewWindow," & quote & "{msFront}" & quote
-
- put "Open Script╔" after menu Wind
- set the menumsg of menuitem "Open Script╔" of menu Wind to "MasterScript OpenScript," & quote & "{msFront}" & quote
-
- put "Open Text╔" after menu Wind
- set the menumsg of menuitem "Open Text╔" of menu Wind to "MasterScript OpenText," & quote & "{msFront}" & quote
-
- put "-" after menu Wind
-
- put "Worksheet" after menu Wind
- set the menumsg of menuitem "Worksheet" of menu Wind to "MasterScript ShowWorksheet"
- set the cmdChar of menuitem "Worksheet" of menu Wind to "1"
-
- put "Variables Monitor" after menu Wind
- set the menumsg of menuitem "Variables Monitor" of menu Wind to "MasterScript ShowVariables"
- set the cmdChar of menuitem "Variables Monitor" of menu Wind to "2"
-
- put "Mesages Monitor" after menu Wind
- set the menumsg of menuitem "Mesages Monitor" of menu Wind to "MasterScript ShowMessages"
- set the cmdChar of menuitem "Mesages Monitor" of menu Wind to "3"
-
- put "Externals Monitor" after menu Wind
- set the menumsg of menuitem "Externals Monitor" of menu Wind to "MasterScript ShowExternals"
- set the cmdChar of menuitem "Externals Monitor" of menu Wind to "4"
-